#include <board.h>
#include "lcd.h"

void test_lcd(void)
{
	u8 lcd_id[12];

	sdram_init();
	LCD_Init();

	sprintf((char *)lcd_id, "LCD ID:%04X", lcddev.id); //将LCD ID打印到lcd_id数组
	POINT_COLOR = RED;
	while (1)
	{
		LCD_ShowString(10, 40, 260, 32, 32, "Apollo STM32F4/F7");
		LCD_ShowString(10, 80, 240, 24, 24, "LTDC TEST");
		LCD_ShowString(10, 110, 240, 16, 16, "ATOM@ALIENTEK");
		LCD_ShowString(10, 130, 240, 16, 16, lcd_id); //显示LCD ID
		LCD_ShowString(10, 150, 240, 12, 12, "2016/7/12");
		POINT_COLOR += 0xff;
		HAL_Delay(1000);
	}
}
